import { createApp } from "vue";
import "amfe-flexible";
import "./style.css";
import App from "./App.vue";
import router from "@/router/index.js";
import I18n from "@/locales/index.js";
import Vant from "vant";
import "vant/lib/index.css";
function setRootFontSize() {
    const html = document.documentElement;
    const width = window.innerWidth;
    const baseSize = width > 750 ? 75 : ""; // PC 用 75 移动端用 37.5，
    html.style.fontSize = baseSize + "px";
}

window.addEventListener("resize", setRootFontSize);
window.addEventListener("load", setRootFontSize);

createApp(App).use(router).use(I18n).use(Vant).mount("#app");
